import { service as request, globals } from "@/utils/request";
import { getWinterForecast } from "@/utils/chartSeriesUtil";
const URLData = "http://10.40.241.198:8089/pipechina";

// 大区下名称 城市名称 用户  管线
export function getAreaDataById(data) {
  return request({
    url: URLData + "/api/v1/dc/list",
    method: "post",
    data: data
  });
}
// 大区下出气数据接口
export function getAreaOutgasDataById(data) {
  return request({
    url: URLData + "/api/v1/predict/getGasOutByDispatcher",
    method: "post",
    data: data
  });
}
// 大区下管存数据接口
export function getAreaIngasDataById(data) {
  return request({
    url: URLData + "/api/v1/predict/getGasStockByDispatcher",
    method: "post",
    data: data
  });
}
// 大区下管线接口
export function getPipeOutgasDataById(data) {
  return request({
    url: URLData + "/api/v1/predict/getGasOutByPipeline",
    method: "post",
    data: data
  });
}

// 用户下出气数据接口
export function getUserOutgasDataById(data) {
  return request({
    url: URLData + "/api/v1/predict/getGasOutByUser",
    method: "post",
    data: data
  });
}
// 城市下出气数据接口
export function getCityOutgasDataById(data) {
  return request({
    url: URLData + "/api/v1/predict/getGasOutByCity",
    method: "post",
    data: data
  });
}

export function getPipeIngasDataById(data) {
  return request({
    url: URLData + "/api/v1/predict/getGasStockByPipeline",
    method: "post",
    data: data
  });
}

// 冬季保供数据接口
export function getWinterForecastData() {
  return request({
    url: URLData + "/api/v1/predict/getGasWinterByCity",
    method: "post",
    data: {}
  });
}
